import request from '@/utils/request'

// 主题模板列表分页查询
export const themeModelList = data => {
  return request({
    url: '/business-server/storeThemeTemplate/page',
    method: 'post',
    data
  })
}

// 主题模板新增
export const themeModelAdd = data => {
  return request({
    url: '/business-server/storeThemeTemplate/addTemplate',
    method: 'post',
    data
  })
}

// 主题模板修改
export const themeModelUpdate = data => {
  return request({
    url: '/business-server/storeThemeTemplate/updateTemplate',
    method: 'post',
    data
  })
}

// 主题模板删除
export const themeModelDel = data => {
  return request({
    url: '/business-server/storeThemeTemplate/delTemplate',
    method: 'post',
    data
  })
}

// 主题模板删除
export const themeModelDetailList = data => {
  return request({
    url: '/business-server/storeThemeDetails/queryList',
    method: 'post',
    data
  })
}

// 主题明细保存
export const themeModelDetailBatch = data => {
  return request({
    url: '/business-server/storeThemeDetails/addThemeDetailBatch',
    method: 'post',
    data
  })
}

// 主题明细详情
export const themeModelDetailById = data => {
  return request({
    url: '/business-server/storeThemeTemplate/queryById',
    method: 'get',
    params:data
  })
}

